#!/usr/bin/python
import sys
fp_word = open(sys.argv[1])
fp_pos = open(sys.argv[2])
fp = open(sys.argv[3],'w')
while True:
	l = fp_word.readline().strip('\r\n')
	if l == '':
		break
	fp.write(l+'\n')
	l = fp_pos.readline().strip('\r\n')
	postags = l.split()
	s=""
	for pos in postags:
		s+= pos + '/'
	s = s.strip('/')
	fp.write(s + '\n')
fp.close()
fp_word.close()
fp_pos.close()
